<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/common/jsp/taglibs-nojs-nocss.jsp"%>
<%@ page isELIgnored="false" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<div id="pop_up_content">
	<div class="pop_up_title images_13">
		标书费用申请
	</div>
	<div class="pop_up_body">
		<form id="saleChanceEdit" action="bidBookAction!bidBookPriceApp.action" >
			<input type="hidden" value="<s:property value='form.id'/>" name="form.id"/>
			<input type="hidden" value="<s:property value='form.status'/>" name="form.status"/>
			<input type="hidden" value="<s:property value='form.bidStatus'/>" name="form.bidStatus"/>
			<input type="hidden" value="<s:property value='form.biddingUnit'/>" name="form.biddingUnit"/>
			<input type="hidden" value="<s:property value='form.biddingTime'/>" name="form.biddingTime"/>
			<input type="hidden" value="<s:property value='form.bidBookPrice'/>" name="form.bidBookPrice"/>
			<input type="hidden" value="<s:property value='form.bidUnit'/>" name="form.bidUnit"/>
			<input type="hidden" value="<s:property value='form.salesMan'/>" name="form.salesMan"/>
			<input type="hidden" value="<s:property value='form.applyMan'/>" name="form.applyMan"/>
			<input type="hidden" value="<s:property value='form.mark'/>" name="form.mark"/>
			<table border="0" cellpadding="0" cellspacing="0" width="450px">
				<tr style="height:22px;">
					<td class="form_input_value" >
						<span class="red">*</span>项目名称
					</td>
					<td colspan="3">
					   <input style="width:260" id="form.projectName" name="form.projectName" type="text" value="${form.projectName}" class="required validate_forbiddenChar max_length:40">
					</td>
				</tr>
				<%--
				<tr style="height:22px;">
					<td class="form_input_value">
							<span class="red"></span>投标金额
					</td>
					<td  colspan="3">
						<input style="width:260" id="form.tenderMoney" name="form.tenderMoney" type="text" value="${form.tenderMoney}" onchange="sumPrice();">
					</td>
				</tr>
				 --%>
				
				<tr style="height:22px;">
					<td class="form_input_value">
							<span class="red"></span>投标保证金
					</td>
					<td  colspan="3">
						<input style="width:260" id="form.tenderMargin" name="form.tenderMargin"  value="${form.tenderMargin}"  type="text"  onchange="sumPrice();">
					</td>
				</tr>
				<tr style="height:22px;">
					<td class="form_input_value">
							<span class="red"></span>中标服务费
					</td>
					<td  colspan="3">
						<input style="width:260" id="form.bidServicePrice" name="form.bidServicePrice" type="text"  value="${form.bidServicePrice}"  onchange="sumPrice();">
					</td>
				</tr>
				<%--
				<tr style="height:22px;">
					<td class="form_input_value">
							<span class="red"></span>其它费
					</td>
					<td  colspan="3">
						<input style="width:260" id="form.otherPrice" name="form.otherPrice"  value="${form.otherPrice}"  type="text" onchange="sumPrice();">
					</td>
				</tr>
				--%>
				<tr style="height:22px;">
					<td class="form_input_value">
							<span class="red"></span>总价
					</td>
					<td  colspan="3">
						<input style="width:260"  id="form.totalPrice" name="form.totalPrice"  value="${form.totalPrice}"  type="text" >
					</td>
				</tr>
				<s:if test="form.entryRole!='swjl'">
					<tr>
						<td><div class="form_input_value" style="margin-right: 8px;">
								<span class="red">*</span>审核人
							</div></td>
						<td colspan="3">
						  <select name="form.checkUserFee">
							<s:iterator value="userList">
								<s:if test="objctForm.checkUserFee==id">
									<option value='<s:property value="id"/>' selected="selected"><s:property value="cname"/></option>
								</s:if>
								<s:else>
									<option value='<s:property value="id"/>'><s:property value="cname"/></option>
								</s:else>
									
							</s:iterator>
							</select>
						</td>
					</tr>
				</s:if>
				<tr style="height:22px;">
					<td></td>
					<td colspan="3">
						<input id="saleChanceEditSubmit" type="button" value="确定" class="btn" onmouseout="this.className='btn'" onmousedown="this.className='btn1'" onmouseover="this.className='btn2'">
						<input type="button" value="取消" class="btn" onclick="hideDialog()" onmouseout="this.className='btn'" onmousedown="this.className='btn1'" onmouseover="this.className='btn2'">
					</td>
				</tr>
			</table>
		</form>
	</div>
</div>
<script>
	
	/* 表单提交 */
	i.formSubmit("saleChanceEditSubmit",	//绑定的按钮id
	 	"saleChanceEdit",   //提交的表单id
  		function(result){
		  	var jsonMsgObj=new JsonMsgObj(result);
			var  msg=jsonMsgObj.getMessage();
		    var codeId=jsonMsgObj.getCodeid();
			var isOk=jsonMsgObj.getIsok();
			if( isOk ){
			    aerouiAlert(msg);
				hideDialog();// 隐藏窗口
				window.location.reload();
			}else{		// 如果编辑失败了
			  JsManageInfoHandleException( result , function(msg , codeId , isOk){
			  		hideDialog();// 隐藏窗口
			   });
		   }
		});
	function sumPrice(){
		var tenderMoney=document.getElementById('form.tenderMoney').value;
		var tenderMargin=document.getElementById('form.tenderMargin').value;
		var bidServicePrice=document.getElementById('form.bidServicePrice').value;
		var otherPrice=document.getElementById('form.otherPrice').value;
		//var sumPrice=(tenderMoney+tenderMargin+bidServicePrice+otherPrice);
		//document.getElementById('form.totalPrice').value=sumPrice;
	}
</script>